package seven;

public class Training05 {
    public static void main(String[] args) {
        char[] s =
                {'序', '顺', '符', '字', '组', '数', '倒', '颠'};
        reverse(s);
        for (char c : s) {
            System.out.print(c + "");
        }
    }

    public static void reverse(char[] s) {
        int length = s.length;
        for (int i = 0; i < length / 2; i++) {
            char temp = s[i];
            s[i] = s[length - i - 1];
            s[length - i - 1] = temp;
        }
    }
}
